import request from '@/utils/request';

// 调拨单列表
export function transferOrderList(data) {
    return request({
        url: '/system/transferOrder/list',
        method: 'get',
        params: data
    })
}

// 新建调拨单
export function transferOrderAdd(data) {
    return request({
        url: '/system/transferOrder/add',
        method: 'post',
        data: data
    })
}

// 编辑调拨单
export function transferOrderEdit(data) {
    return request({
        url: '/system/transferOrder/edit',
        method: 'post',
        data: data
    })
}

// 删除调拨单
export function transferOrderDel(id) {
    return request({
        url: '/system/transferOrder/remove?id=' + id,
        method: 'post'
    })
}

// 查询调拨单详细信息
export function transferOrderDetail(id) {
    return request({
        url: '/system/transferOrder/getInfo?id=' + id,
        method: 'get'
    })
}

// 审核
export function transferOrderApprove(data) {
    return request({
        url: '/system/transferOrder/approve',
        method: 'post',
        data: data
    })
}